From: Dan Nicolaescu Date: Sun, 10 Oct 2010 13:44:22 +0000 (-0700) Subject: Small sysdep.c cleanups. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~324^2~6149 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=f3783eadacf8903afa14c56a1e63988c05f5b3c8;p=emacs.git Small sysdep.c cleanups. * src/sysdep.c (LPASS8): Remove, unused. (emacs_ospeed): Change from being a global to a local in the only user: init_baud_rate. --- diff --git a/src/ChangeLog b/src/ChangeLog index 304faebd342..4f21fb046b2 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,9 @@ +2010-10-10 Dan Nicolaescu + + * sysdep.c (LPASS8): Remove, unused. + (emacs_ospeed): Change from being a global to a local in the only + user: init_baud_rate. + 2010-10-09 Lars Magne Ingebrigtsen * gnutls.c (syms_of_gnutls): All the bootprops are keywords. diff --git a/src/sysdep.c b/src/sysdep.c index f46a9e614b9..f68d475d22c 100644 --- a/src/sysdep.c +++ b/src/sysdep.c @@ -123,19 +123,12 @@ struct utimbuf { #endif #endif -/* LPASS8 is new in 4.3, and makes cbreak mode provide all 8 bits. */ -#ifndef LPASS8 -#define LPASS8 0 -#endif - static const int baud_convert[] = { 0, 50, 75, 110, 135, 150, 200, 300, 600, 1200, 1800, 2400, 4800, 9600, 19200, 38400 }; -int emacs_ospeed; - void croak (char *) NO_RETURN; /* Temporary used by `sigblock' when defined in terms of signprocmask. */ @@ -275,6 +268,8 @@ stuff_char (char c) void init_baud_rate (int fd) { + int emacs_ospeed; + if (noninteractive) emacs_ospeed = 0; else